package twentyone.proxy.example;

public class Main {
    public static void main(String[] args) {
        Printable p =new PrintProxy("Alice");
        System.out.println("现在的名字是 " + p.getPrinterName() +".");
        p.setPrinterName("Bob");
        System.out.println("现在的名字是 " + p.getPrinterName() +".");
        p.print("hello");
    }
}
